package swa.assignment3.brokerservice;

import java.util.Collection;

import swa2012.telco.broker.beans.BrokerRegistrationStatus;
import swa2012.telco.broker.beans.BrokerSendMessageStatus;
import swa2012.telco.broker.beans.Message;
import swa2012.telco.broker.beans.Provider;

public class BrokerService {
	
	public BrokerSendMessageStatus sendMessage(Message msg) {
		if(msg.getTimestamp() == null || msg.getSender()== null || msg.getReceiver()==null || msg.getText()==null)
		{
			return BrokerSendMessageStatus.SEND_MESSAGE_ERROR;
		}
		// TODO Auto-generated method stub
		return this.sendMessage(msg);
	}

	public BrokerRegistrationStatus registerProvider(Provider p) {
		// TODO Auto-generated method stub
		return null;
	}

	public BrokerRegistrationStatus deregisterProvider(Provider p) {
		// TODO Auto-generated method stub
		return null;
	}

	public Collection<Provider> listProviders() {
		// TODO Auto-generated method stub
		return null;
	}
}
